package com.qidianit.mes.pro.service.impl;




import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Bom;
import com.qidianit.mes.pojo.pro.ProductionOrder;
import com.qidianit.mes.pro.mapper.BomMapper;
import com.qidianit.mes.pro.service.BomService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * @Description: 常见缺陷业务实现类
 * @Author: wang fei long
 * @Date: 2025/9/22 0022 - 14:49
 */
@Service
public class BomServiceImpl implements BomService {
    @Autowired
    private BomMapper bomMapper;
    @Override
    public Result<PageInfo<Bom>> selectList(Bom bom, int pageNum, int pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        List<Bom> boms=bomMapper.selectList(bom,pageNum,pageSize);
        return Result.success(new PageInfo<>(boms));
   }

}
